﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dbUtils.dto
{
    public class Tuyen : objdto
    {
        public const int ID_ERROR = -1;

        int _id;
        string _ten;
        int _id_diadiem1;
        int _id_diadiem2;

        public Tuyen()
        {
            _objType = OBJ_TYPE_TUYEN;
            _id = _id_diadiem1 = _id_diadiem2 = ID_ERROR;
        }
        public Tuyen(string ten,int id_diadiem1,int id_diadiem2)
        {
            _ten = ten;
            _id_diadiem1 = id_diadiem1;
            _id_diadiem2 = id_diadiem2;
            _objType = OBJ_TYPE_TUYEN;
        }

        public int Id_diadiem2
        {
            get { return _id_diadiem2; }
            set { _id_diadiem2 = value; }
        }

        public int Id_diadiem1
        {
            get { return _id_diadiem1; }
            set { _id_diadiem1 = value; }
        }
        

        public string Ten
        {
            get { return _ten; }
            set { _ten = value; }
        }

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
    }
}
